Skip to content

[PR #2444/29bc71db backport][0.20] Mark distribution update/delete as non-immediate#2448

Open
patchback[bot] wants to merge 1 commit into0.20from
patchback/backports/0.20/29bc71dbc78badeefeac12171bcc7d4c16c435d8/pr-2444
Open

[PR #2444/29bc71db backport][0.20] Mark distribution update/delete as non-immediate#2448
patchback[bot] wants to merge 1 commit into0.20from
patchback/backports/0.20/29bc71dbc78badeefeac12171bcc7d4c16c435d8/pr-2444

Conversation

@patchback
Copy link
Copy Markdown

@patchback patchback bot commented Mar 5, 2026

This is a backport of PR #2444 as merged into main (29bc71d).

AnsibleDistribution lifecycle hooks trigger heavy index rebuilds, so update and delete should not be dispatched with immediate=True. Pulpcore exposes the control of whether this can be run immediately via ALLOW_NON_BLOCKING_UPDATE and ALLOW_NON_BLOCKING_DELETE.

Fixes #2445

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

AnsibleDistribution lifecycle hooks trigger heavy index rebuilds via
_update_index(), so update and delete should not be dispatched with
immediate=True. Set ALLOW_NON_BLOCKING_UPDATE and ALLOW_NON_BLOCKING_DELETE
to False on AnsibleDistributionViewSet.

Fixes #2445

(cherry picked from commit 29bc71d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant